/*********************************************************
          File Name:specializtion.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sat 07 May 2016 01:14:43 PM CST
**********************************************************/

#include <iostream>
#include <cstring>

template<typename T>
bool cmp(T lhs, T rhs)
{
  return lhs == rhs;
}

template<> bool cmp(const char *lhs, const char *rhs)
{
  std::cout << "template\n";
  return strcmp(lhs, rhs) == 0;
}

bool cmp(const char *lhs, const char *rhs)
{
  std::cout << "non-template\n";
  return strcmp(lhs, rhs) == 0;
}

int main()
{
  std::cout << std::boolalpha << cmp("this", "that") << std::endl;
}
